// 设置屏幕约束条件
@media screen and (min-width: 750px) {
    html {
        font-size: 37.5px !important; // 因为flexible.js将屏幕分成了20份
    }
}
body {
    min-width: 320px;
    max-width: 750px;
    margin: 0 auto;
    background-color: #f2f4f7;
}
/*点击高亮我们需要清除清除  设置为transparent 完成透明*/
* {
    -webkit-tap-highlight-color: transparent;
}

/*禁用长按页面时的弹出菜单*/
img,
a {
    -webkit-touch-callout: none;
}

ul {
    margin: 0;
}

a {
    text-decoration: none;
    font-size: .6667rem;
    color: #707070;
}

.bg_white {
    background-color: #fff;
}

header {
    height: 2.1333rem;
    border-bottom: .0267rem solid #EAEAEA;
    font-size: .9333rem;
    color: #1C1C1C;
    text-align: center;
    line-height: 2.1333rem;
}

// nav导航
.nav {
    padding: 1.1733rem 0;
    margin-bottom: .2667rem;
}

.nav_content {
    display: flex;
    flex-wrap: wrap;

    .nav_items {
        display: flex;
        flex: 33.3333%;
        flex-direction: column;
        align-items: center;
        text-align: center;

        img {
            width: 100%;
            height: auto;
        }

        &:nth-child(-n+3) {
            margin-bottom: 1.6533rem;
        }
    }
}
.go {
    display: block;
    margin: 1.6rem .2667rem 0 .48rem;
}

/* 
    轮播图部分
*/
.lunbo_hd,
.study_hd {

    // display: flex;
    // justify-content: space-between;
    h4 {
        display: flex;
        position: relative;
        height: 2.9867rem;
        margin: 0;
        font-size: .7467rem;
        align-items: center;
        color: #333;

        span {
            position: absolute;
            top: 1.2533rem;
            right: .64rem;
            font-size: .5867rem;
            color: #999;
        }

        img {
            width: 1.0133rem;
            height: 1.0133rem;
            margin: 0 .48rem 0 .6133rem;
            vertical-align: center;
        }
    }
}
.lunbo_bd,
.study_bd {
    position: relative;
    padding-bottom: 1.0133rem;
}

/* 
    swiper组件样式
*/
.lunbo {
    margin-bottom: .2667rem;
    .swiper-container {
        // width: 100%;
        height: 100%;
        // 根据需求修改宽度
        width: 14.4rem;
    }
    .swiper-slide {
        text-align: center;
        font-size: 18px;
        background: #fff;
    
        /* Center slide text vertically */
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        flex-direction: column;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;
        transition: 300ms;
        // 其余兄弟元素缩小
        transform: scale(0.8);
        // 其余兄弟透明
        opacity: .4;
        img {
            width: 9.0133rem;
            height: 10.0267rem;
        }
        p {
            width: 9.0133rem;
            margin-top: 24px;
            font-size: .6667rem;
            color: #333;
        }
    }
    .swiper-slide-active,
    .swiper-slide-duplicate-active {
        transform: scale(1);
        z-index: 999;
        opacity: 1;
    }
}

/* 
    学习模块的轮播图
*/
.study {
    margin-bottom: 2.6667rem;
}
.swiper {
    height: 100%;
    margin-left: .64rem;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    list-style: none;
    padding: 0;
    padding-bottom: .2667rem;
    z-index: 1;
    .swiper-wrapper {
        position: relative;
        width: 100%;
        height: 100%;
        z-index: 1;
        display: flex;
        transition-property: transform;
        box-sizing: content-box
    }
    .swiper-slide {
        text-align: left;
        font-size: 18px;
        background: #fff;
        width: 7.7333rem;
        height: 9.0667rem;
        padding: .2667rem .2667rem .5333rem .2667rem;
        border-radius: .2667rem;
        box-shadow: 0px 1px 10px rgba(0, 0, 0, .1);

        /* Center slide text vertically */
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        // 将主轴设为y轴，使图文竖着排
        flex-direction: column;
        img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        h5 {
            margin: .2667rem 0 .5333rem 0;
            font-size: .7467rem;
            font-weight: 400;
        }
        p {
            font-size: .6133rem;
            color: #999;
            span {
                font-size: .6933rem;
                color: #FF4400;
            }
        }
    }
}

// footer模块
.footer {
    display: flex;
    align-items: center;
    text-align: center;

    position: fixed;
    z-index: 9999;
    bottom: 0;
    left: 0;
    height: 3.0133rem;
    width: 100%;
    border-top: 1px solid #E2E2E2;
    background-color: #fff;
    a {
        flex: 1;
        img {
            width: 1.04rem;
            height: 1.0933rem;
            margin: .2667rem auto;
        }
    }
}